package com.zzyl.serve.dto;

import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author wangyoucheng
 * @date 2025/8/27
 * @description TOD0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("执行任务实体类")
public class NursingTaskDto {

    private String elderName;
    private String endTime;
    private String startTime;
    private Integer nurseId;
    private Integer pageNum;
    private Integer pageSize;
    private Integer projectId;
    private Integer status;
    //执行时间
    /*DateTimeFormat主要用来接收表单参数，将字符串格式转换为日期格式
    * JsonFormat主要用来接收json参数。将json字符串转换为java对象
    * */
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;
    //执行记录
    @ApiModelProperty("执行记录")
    private String mark;
    //护理任务ID
    @ApiModelProperty("护理任务ID")
    private Long taskId;
    @ApiModelProperty("任务图片")
    private String taskImage;
}
